This is a description of boolean_list
def above_five(vals):
results = []
for v in vals:
results.append(v > 5)
return results
Function Call | Return Value | |||
---|---|---|---|---|
above_five([5, 6]) | → | |||
above_five([6]) | → |
Experiment with this code on Gitpod.io